package com.search.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.search.mapper.ProjectInfoMapper;
import com.search.pojo.ProjectInfo;
import com.search.service.ProjectInfoService;
@Service
@Transactional
public class ProjectInfoServiceImpl implements ProjectInfoService{
	@Autowired
	private ProjectInfoMapper projectInfoMapper;
	/**
	 * 查询出所有的内容
	 */
	@Override
	@Transactional(readOnly=true)
	public List<ProjectInfo> selectAll() {
		//添加查询参数
		//ProjectInfoExample example =new ProjectInfoExample();
		List<ProjectInfo> list =projectInfoMapper.selectAll();
		return list;
	}
	/**
	 * 
	 */
	@Override
	@Transactional(readOnly=true)
	public int selectById(int id) {
		int i =projectInfoMapper.selectById(id);
		return i;
	}

}
